NDepend.API Documentation
EqualsAny(String,HashSet<String>) Method
NDepend.Helpers Namespace > ExtensionMethodsString Class > EqualsAny Method : EqualsAny(String,HashSet<String>) Method
This string.
An hashset containing possible values for this thisString.
Gets a value indicating whether hashset contains the string thisString.
Syntax
[Extension()]
public static bool EqualsAny( 
   string thisString,
   HashSet<string> hashset
)

Parameters

thisString
This string.
hashset
An hashset containing possible values for this thisString.
Remarks
This EqualsAny(String,String,String) overload can be used to check the value of thisString against a large number of strings, in a constant time.
Requirements

Target Platforms: Windows 11, 10, 8, 7 and Linux, MacOS with net8.0, net7.0 or net6.0 installed

See Also

Reference

ExtensionMethodsString Class
ExtensionMethodsString Members
Overload List